import axios from 'axios'

const DOMAIN = 'http://api.com/test'
const apiMixins = {
  async getlist(params = {}, pagenum = 1, rownum = 10) {
    try {
      const res = await axios.get(`${DOMAIN}/list?pagenum=${pagenum}&rownum=${rownum}`, params)
      return res.data
    } catch (err) {
      return err
    }
  },
};

export default {
  methods: apiMixins,
}
